import request from '@/utils/request'

// 查询店铺列表
export function listT_shop(query) {
  return request({
    url: '/backend/t_shop/list',
    method: 'get',
    params: query
  })
}

// 查询店铺详细
export function getT_shop(id) {
  return request({
    url: '/backend/t_shop/' + id,
    method: 'get'
  })
}

// 新增店铺
export function addT_shop(data) {
  return request({
    url: '/backend/t_shop',
    method: 'post',
    data: data
  })
}

// 修改店铺
export function updateT_shop(data) {
  return request({
    url: '/backend/t_shop',
    method: 'put',
    data: data
  })
}

// 删除店铺
export function delT_shop(id) {
  return request({
    url: '/backend/t_shop/' + id,
    method: 'delete'
  })
}

// 获取当前店铺信息
export function getCurrentShop() {
  return request({
    url: '/backend/t_shop/getCurrentShop',
    method: 'get'
  })
}
